package com.chat.server.base;

import java.io.Serializable;

/**
 * @Auther created by haoteng on 2019/09/04
 */
public class MetadataUnit implements Serializable {

    private static final long serialVersionUID = 6608356363901334390L;

    private String ip;

    private Integer port;

    private Object data;

    private String servicePath;

    private String interfaceName;

    public String getServicePath() {
        return servicePath;
    }

    public void setServicePath(String servicePath) {
        this.servicePath = servicePath;
    }

    public String getInterfaceName() {
        return interfaceName;
    }

    public void setInterfaceName(String interfaceName) {
        this.interfaceName = interfaceName;
    }

    public MetadataUnit() {
    }

    public MetadataUnit(String ip, Integer port, Object data, String servicePath, String interfaceName) {
        this.ip = ip;
        this.port = port;
        this.data = data;
        this.servicePath = servicePath;
        this.interfaceName = interfaceName;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

}
